# -*- coding: UTF-8 -*-
# @ Author : 游于艺
# @ QQ : 58012007
# @ File: zy_day_27_游于艺.py
# @ Time: 2018/3/30 13:09
import unittest
"""
1.写一个函数,然后写单元测试
"""
# from mytest import eat
# class MyTest(unittest.TestCase):
#     def setUp(self):
#         pass
#     def tearDown(self):
#         pass
#     def testeat(self):
#         self.assertEqual(eat('屎'),'吃屎','测试eat函数成功')
#
# if __name__=='__main__':
#     unittest.main()




"""
2.自定义一个类,完成单元测试
"""
# from mytest import Dog
# class MyClassTest(unittest.TestCase):
#     def setUp(self):
#         self.p = Dog('旺财')
#     def testeat(self):
#         self.p.eat()
#     def tearDown(self):
#         self.p = None
#
#
# if __name__=='__main__':
#     unittest.main()